package com.lagou.pojo;


/**
 * 通用响应状态
 * @author
 */
public enum ResultCode {

    SUCCESS(0,"成功！"),
    FAIL(-1,"失败！");

    /**
     * 操作代码
     */
    int code;
    /**
     * 提示信息
     */
    String message;

    ResultCode(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int code() {
        return code;
    }

    public String message() {
        return message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
